﻿using System.Linq;
using Xunit;

namespace Gamemaster.Naming
{
    public class InjectDummyDatabaseTests
    {
        [Fact]
        [InjectDummyDatabase]
        public void GettingDummyData()
        {
            Name name = Names.Generate(1, GenderOptions.Male).FirstOrDefault();

            Assert.Equal(DummyDatabase.DummyName, name.FirstName);
        }

        [Fact]
        public void NotGettingDummyData()
        {
            Name name = Names.Generate(1, GenderOptions.Male).FirstOrDefault();

            Assert.NotEqual(DummyDatabase.DummyName, name.FirstName);
        }
    }
}
